﻿using System.ComponentModel.DataAnnotations;

namespace HY.Entity
{
    /// <summary>
    /// 用户
    /// </summary>
    public class SysUser : EntityBaseModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [StringLength(20)]
        public string UserName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Password { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int DeptID { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleID { get; set; }

        /// <summary>
        /// 状态（0：禁用；1：启用）
        /// </summary>
        public int Status { get; set; }
    }
}